import App from '../page/App'
import Home from '../page/Children/Home'
import Shop from '../page/Children/Shop'
import List from '../page/Children/List'
import My from '../page/Children/My'
import Login from '../page/Login'
import ListDetail from "../page/ListDetail"
import ShopDetail from "../page/ShopDetail"
import Mydoctor from "../page/Mydoctor"
import Car from "../page/Car"
import Payment from "../page/Payment"
import Address from "../page/Address"
import Order from "../page/Order"


const page = [
    {
        from: '/',
        to: "/app"
    },
    {
        path: '/app',
        component: App,
        children: [
            {
                from: '/app',
                to: '/app/home'
            },
            //首页
            {
                path: '/app/home',
                component: Home
            },
            //商城
            {
                path: '/app/shop',
                component: Shop
            },
            //科普
            {
                path: '/app/list',
                component: List
            },
            //我的
            {
                path: '/app/my',
                component: My
            }

        ]
    }
    ,
    //登录
    {
        path: '/login',
        component: Login
    }
    ,
    //科普列表详情
    {
        // path: '/listDetail/:id',
        path: '/listDetail',
        component: ListDetail
    }
    ,
    //商城列表详情
    {
        path: '/shopDetail/:id',
        // path: '/shopDetail',
        component: ShopDetail
    }
    ,
    //购物车
    {
        // path: '/listDetail/:id',
        path: '/car',
        component: Car
    }
    ,
    //支付页面
    {
        path: '/payment',
        component: Payment
    }
    ,
    //我的医生
    {
        path: '/mydoctor',
        component: Mydoctor
    }
    ,
    //我的地址
    {
        path: '/address',
        component: Address
    }
    ,
    //我的订单
    {
        path: '/order',
        component: Order
    }
]

export default page